package com.tql.mall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tql.mall.model.order.OrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: tyk
 * @Date: 2023/5/26 17:41
 * @Description:
 */
@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    /**
     * 订单列表
     */
    IPage<OrderInfo> selectOrderList(@Param("userId") String userId, Page<OrderInfo> pageInfo);

    /**
     * 商家获取订单列表
     */
    IPage<OrderInfo> selectOrderListForShop(@Param("shopId") Long shopId, Page<OrderInfo> pageInfo);
}
